package com.medusa.aps.business.properties;

import com.medusa.aps.business.global.model.o.ThreadPoolProperties;
import io.swagger.v3.oas.models.info.Info;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 张治保
 * @since 2023/12/8
 */

@Getter
@Setter
@ToString
@Accessors(chain = true)
@ConfigurationProperties(prefix = "aps")
public class ApsProperties {
    /**
     * 是否开启swagger
     */
    private boolean swaggerEnable = false;

    /**
     * swagger 配置
     */
    private Info swagger = new Info()
            .title("Aps API")
            .description("aps-system Service Api Documentation")
            .version("1.0.0")
            .termsOfService("https://aps-test.bgniao.cn/#/");


    /**
     * 线程池配置
     */
    private ThreadPoolProperties threadPool = new ThreadPoolProperties()
            .setThreadNamePrefix("aps-")
            .setCorePoolSize(16)
            .setMaxPoolSize(64)
            .setQueueCapacity(500)
            .setKeepAliveSeconds(60);


}
